import tkinter as tk
import tkinter.font as tkFont

def creatLoginWindow():
    #创建窗口
    global login
    login = tk.Tk()
    login.title("Login")
    login.geometry('450x300')

    # 设置图标
    app.iconbitmap('Ico.ico')

def loginWindowLoop():
    login.mainloop()

def creatMainWindow():
    #创建窗口
    global app
    app = tk.Tk()
    app.title("Dictionary")
    # 窗口最大化
    app.state('zoomed')

    # 定义Label字体颜色列表
    global color
    color = ["red", "blue", "green", "purple", "black"]
    # 设置字体
    global font
    font = tkFont.Font(size=14)

    # 设置图标
    app.iconbitmap('Ico.ico')

def mainWindowLoop():
    app.mainloop()